﻿@model Home.Site.Models.WebUI.TagViewModel
<table class="table table-bordered table-hover table-striped">
    <tr>
        <th>Обзор
        </th>
        <th>Тег
        </th>
        <th></th>
    </tr>
    @foreach (var item in Model.ReviewTags)
    {
        <tr>
            <td>
                @Html.DisplayFor(modelItem => item.Review.Title)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.TagName1.name)
            </td>
            <td>
                @using (Html.BeginForm("Delete", "TagReview", new { id = item.idreviewtag, idreview = item.ReviewId}, FormMethod.Post))
                {
                    @Html.AntiForgeryToken()
                    <p>
                        <input type="submit" class="btn-mini btn-danger" value="Удалить" />
                    </p>
                }
            </td>
        </tr>
    }

</table>
